import { _decorator, Component, Node } from "cc"
import EventManager from "../../Runtime/EventManager"
import { CONTROLLER_ENUM, EVENT_ENUM } from "../../Enums"
const { ccclass, property } = _decorator

@ccclass("ControllerManager")
export class ControllerManager extends Component {
  handleCtrl(event: Event, type) {
    EventManager.emit(EVENT_ENUM.PLAYER_CTRL, type as CONTROLLER_ENUM)
    // EventManager.emit(EVENT_ENUM.NEXT_LEVEL)
    console.log("111")
  }
  start() {}

  update(deltaTime: number) {}
}
